package com.dcw.lixb.designmode.proxy;

/**
 * @author lixiaobin
 * @date 2020-07-23 15:57:46
 * @desc 描述信息
 */
public class RealImage implements Image {
    public RealImage(String fileName) {
        this.fileName = fileName;
        loadFromDisk(fileName);
    }

    private void loadFromDisk(String fileName) {
        System.out.println("loading img : "+fileName);
    }

    private String fileName;

    @Override
    public void display() {
        System.out.println("Displaying img : "+fileName);
    }
}
